﻿using EventHandlerDemo.Domain.Bases.Events;

namespace EventHandlerDemo.Infrastructure.EFCore
{
    [Serializable]
    public class DomainEventEntry
    {
        public object SourceEntity { get; }

        public DomainEvent EventData { get; }

        public DomainEventEntry(object sourceEntity, DomainEvent eventData)
        {
            SourceEntity = sourceEntity;
            EventData = eventData;
        }
    }
}